#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>

typedef int (*Data_compare_func)(void *a, void *b);

int int_compare(void *a, void *b)
{
	return (int)a - (int)b;
}

int bubble_sort(void **array, size_t size, Data_compare_func cmp)
{
	size_t i = 0;
	size_t max = 0;
	size_t right = 0;

	if (size < 2) {
		return 0;
	}

	if (!array || !cmp) {
		return -1;
	}

	for (right = size - 1; right > 0; right--) {
		
	}
}
